package day06;

import java.util.Arrays;
import java.util.Scanner;

public class nums1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        say();
        String a = scanner.nextLine();
        sayHi(a);
        int b = scanner.nextInt();
        sayHello(a,b);
        getnum();
        plus(5,64);
        int[] c = testArray(20,100);
        int[] e = testArray(10,1000);
        System.out.println(Arrays.toString(c));
        System.out.println(Arrays.toString(e));
    }
    public static void say(){
        System.out.println("你好");
    }
    public static void sayHi(String name){
        System.out.println("你好我叫"+name);
    }
    public static void sayHello(String name,int age){
        System.out.println("你好我叫"+name+",今年"+age+"岁");
    }
    public static double getnum(){
        return 8.88;
    }
    public static int plus(int num1,int num2){
        int c = num1+num2;
        return c;
    }
    public static int[] testArray(int len,int may){
        int[] a = new int[len];
        for (int i = 0; i < a.length;i++){
            a[i] = (int)(Math.random()*may);
        }
        System.out.println();
        return a;
    }
}
